package maven.demo4;

public class Van extends Car {
    public Van(int num, String name, int person, int loads, int rent) {
        this.setNum(num);
        this.setName(name);
        this.setPerson(person);
        this.setLoads(loads);
        this.setRent(rent);
    }

    public String toString() {
        return (num + "\t" + name + "\t" + "载人" + person + "位，载货" + loads + "吨" + rent);
    }
}
